notebook: use the current page allocation when computing the redraw area
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 21 Nov 2011 18:57:27 +0000 (13:57 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 21 Nov 2011 19:19:36 +0000 (14:19 -0500)
commit79bbce5577ff8a623f9fecc291b589db5eade053
tree71139873a036bec890d088ad91ee1d3e6fee58b2
parentf01162c7273b9354c90c080a422cb122ddeaf2ce
notebook: use the current page allocation when computing the redraw area

Instead of taking the first page and trying to adjust the rect with
random padding values, take the current page, as it's always guaranteed
to be at least as tall as inactive tabs.
This fixes some annoying 1px drawing artifacts while switching tabs when
the theme disables notebook padding.

https://bugzilla.gnome.org/show_bug.cgi?id=664494
gtk/gtknotebook.c